# -*- coding: utf-8 -*-
# @Time    : 2021/4/23 17:36
# @Author  : 夏思毅
# @Email   : 2739124228@qq.com
# @File    : 4.23zuoye.py
# @Software: PyCharm

# a=['sda2344f','234dfsd','ssww','iuyj999990000000988']
import re
# def func(x):
#     result=re.findall(r"^[A-z_]\w{5,17}$",x)
#     if result:
#         return (f"{x}符合规范")
#     else:
#         return (f"{x}不符合规范")
# result=map(func,a)
# for i in result:
#     print(i)

# def func2(x):
#     # result = re.findall(r"^[A-z_]\w{5,17}$", x)
#     # if result != []:
#     return re.findall(r"^[A-z_]\w{5,17}$", x)
# result2=filter(func2,a)
# for i in result2:
#     print(i)
#
# from functools import reduce
#
# print(reduce(lambda x,y:x*y,range(1,10)))
#
# print(list(filter(lambda x:x%3==0,range(1,100))))
#
# print(list(map(lambda x:x**2,range(1,10))))
#
# print(reduce(lambda x,y:str(x)+str(y),[1,4,5,9]))


# list1 = [7, -8, 5, 4, 0, -2, -5]
# print(sorted(list1,reverse=True))
# print(sorted(list1))
# print(sorted(list(filter(lambda a:a<0,list1)),reverse=True))

# def func7(a):
#     n=0
#     for i in range(len(a)):
#         if str(a[i]).isdigit():
#             if n==0:
#                 n=i
#             elif int(a[i])%2!=0:
#                  a.insert(n,a[i])
#                  del a[i+1:i+2]
#     return a
#
# s = 'asdf234GDSdfd47904sf23'
# b=sorted(s,key=ascii)[::-1]
# d=func7(b)
# print(d)
